package com.example.my3.ui.home;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class HomeViewModel extends ViewModel {

    private final MutableLiveData<Setting> mText;

    public HomeViewModel() {
        mText = new MutableLiveData<>();
        Setting setting = new Setting(100,200);
        setting.setTitle("切换数据流量");
        mText.setValue(setting);
    }

    public LiveData<Setting> getText() {
        return mText;
    }
}